﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="users.aspx.cs" Inherits="btnet.pages.users" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title id="titl" runat="server">btnet users</title>
<link rel="StyleSheet" href="~/scripts/css/btnet.css" type="text/css" />
<script type="text/javascript" language="JavaScript" src="../scripts/javascripts/sortable.js"></script>
<script type="text/javascript" language="JavaScript" >

function filter_changed()
{
	el = document.getElementById("filter_users")

	if (el.value != "")
	{
		el.style.background = "yellow"
	}
	else
	{
		el.style.background = "white"
	}

}

</script>
</head>
<body onload="filter_changed()">
<div>
<% security.write_menu(Response, "admin"); %>
<table border="0" width="80%"><tr>
	<td align="left" valign="top">
		<a href="edit_user.aspx">add new user </a>
	</td>
	<td align="right" valign="top">
		<form id="form1" runat="server">

			<span class="lbl">Show only usernames starting with:</span>
			<input type="text" runat="server" id="filter_users" class="txt" value="" onkeyup="filter_changed()" style="color: red;" />

			&nbsp;&nbsp;&nbsp;

			<span class="lbl">hide inactive users:</span>
			<asp:CheckBox id="hide_inactive_users" CssClass="cb" runat="server"/>

			<input type="submit" class="btn" value="Refresh User List" />
		</form>
	</td>
	</tr>
</table>

<%
    displaylist();
%>
</div>
<% Response.Write(Application["custom_footer"]); %>    
</body>
</html>
